const Layout = () => import("@/layout/index.vue")
const Markdown = () => import('@/components/markdown.vue')
/* 
1. name 要和 md 文档的名字保持一致
*/
export default {
  path: "/mdnweb",
  name: "MdnWeb",
  title: "WEB API",
  icon: 'svg-spinners:blocks-shuffle-3',
  component: Layout,
  children: [
    {
      path: "/mdnweb_element",
      name: "element",
      title: "element",
      icon: 'svg-spinners:bars-scale-middle',
      children: [
        {
          path: "/doc/insertAdjacentElement",
          name: "insertAdjacentElement",
          title: "insertAdjacentElement",
          component: Markdown,
          meta: {
            title: 'insertAdjacentElement'
          }
        },
        {
          path: "/doc/getBoundingClientRect",
          name: "getBoundingClientRect",
          title: "getBoundingClientRect",
          component: Markdown,
          meta: {
            title: 'getBoundingClientRect'
          }
        }
      ]
    },
    // 别的扩展内容
    {
      path: "/mdnweb_css",
      name: "css",
      title: "Css层叠样式",
      icon: 'svg-spinners:bars-scale-middle',
      children: [
        {
          path: "/doc/flex",
          name: "flex",
          title: "flex",
          component: Markdown,
          meta: {
            title: 'flex'
          }
        },
        {
          path: "/doc/grid",
          name: "grid",
          title: "grid",
          component: Markdown,
          meta: {
            title: 'grid'
          }
        },
        {
          path: "/doc/filter",
          name: "filter",
          title: "filter",
          component: Markdown,
          meta: {
            title: 'filter'
          }
        },
        {
          path: "/doc/order",
          name: "order",
          title: "order",
          component: Markdown,
          meta: {
            title: 'order'
          }
        },
        {
          path: "/doc/combinator",
          name: "combinator",
          title: "combinator",
          component: Markdown,
          meta: {
            title: 'combinator'
          }
        },
      ]
    }
  ]
}
